package cn.deschen.eshop.user.config;

import cn.deschen.eshop.common.config.BaseSwagger2Config;
import cn.deschen.eshop.common.properties.Swagger2Properties;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @Author hanbin_chen
 * @Description Swagger API文档相关配置
 * @DateTime 2021/2/22 16:19
 * @Version V1.0.0
 */
@Configuration
@EnableSwagger2
public class EshopSwaggerConfig extends BaseSwagger2Config {

    @Override
    public Swagger2Properties swagger2Properties() {
        return Swagger2Properties.builder()
                .apiBasePackage("cn.deschen.eshop")
                .title("eshop后台用户系统")
                .description("eshop后台用户系统相关接口文档")
                .contactName("deschen")
                .version("1.0")
                .enableSecurity(true)
                .build();
    }

}